package com.bjdd.jdy.ui.Mine;

import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;
import com.bjdd.jdy.entity.User;
import com.bjdd.jdy.entity.result.PerformanceResult;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/3.
 */

public interface MineContract {
    interface Model extends BaseModel{
        Observable<BaseResult<User>> getIserInfo(String token,String carrierId);
        Observable<BaseResult<PerformanceResult>> performance(String token,String carrierId);
    }
    interface View extends BaseView{
        void userInfoBack();
        void performanceSuccess(PerformanceResult result);
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getUserInfo();
        abstract void performance();
    }
}
